#include <iostream>

using namespace std;

int max (int a,int b,int c);

double max(double a,double b,double c);

long max(long a,long b,long );

int main ( )
{
    int i=1,j=-12,k=9,l;
    l=max(i,j,k);
    cout<<"int max"<<l<<endl;

    double x=12.3,y=13.4,z=14.5,w;
    w=max(x,y,z);
    cout<<"double max"<<w<<endl;

    long a=789456,b=123456,c=654123,d;
    d=max(a,b,c);
    cout<<"long max"<<d<<endl;

    cin>>d;
    return 0;
}

int max (int a,int b,int c)
{
    int d;
    d=a>b?a:b;
    d=d>c?d:c;
    return d;
}

double max(double a,double b,double c)
{
    double d;
    d=a>b?a:b;
    d=d>c?d:c;
    return d;
}

long max(long a,long b,long c)
{
    long d;
    d=a>b?a:b;
    d=d>c?d:c;
    return d;
 }